﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace NewUsingDependencyInjection
{
    public class SecondHandBookstoreContext : DbContext
    {
        //利用依赖注入框架注入连接和SQL选项
        public SecondHandBookstoreContext(DbContextOptions<SecondHandBookstoreContext> options)
            : base(options) { }
        public DbSet<SecondHandBookstore> Books { get; set; }
    }
}
